package cn.admin.config.common.protocol;

public class ProtocolElementUidUnmatchedException extends ProtocolException {
    private final ProtocolElement element;
    private final int actualUid;
    private static final long serialVersionUID = 1L;

    public ProtocolElementUidUnmatchedException(ProtocolElement invalidElement, int actualUid) {
        super("ProtocolElement " + invalidElement.getClass().getName()
                + " with unmatched uid " + actualUid + " received.");
        this.element = invalidElement;
        this.actualUid = actualUid;
    }

    public ProtocolElement getElement() {
        return this.element;
    }

    public int getActualUid() {
        return this.actualUid;
    }
}
